package edu.whut.movieMangement;

import edu.whut.movieMangement.Movie;
import edu.whut.movieMangement.MovieService;

public class Test {
    public static void main(String[] args) {
        Movie movie1 = new Movie(1,"抗日神剧","2022",8.5,"中国","抗战","冯小刚","周也");
        Movie movie2 = new Movie(2,"黑猴","2024",9.5,"中国","科技","李白","蔡徐坤 杨幂");
        Movie movie3 = new Movie(3,"人生大事","2024",9.9,"美国","年代","Doenn","KOBE BRIENT");
        //对象型数组
        Movie[] movies = {movie1,movie2,movie3};

        //把一个类中的数据传到另一个类
        MovieService movieService = new MovieService(movies);
        movieService.start();
    }
}
